package com.spica.spicaschool.ui.main

import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.navigation.Navigation
import androidx.navigation.ui.NavigationUI
import com.spica.spicaschool.R
import com.spica.spicaschool.base.BaseFragment
import com.spica.spicaschool.databinding.FragmentMainBinding

/**
 * 主页
 */

class MainFragment : BaseFragment<FragmentMainBinding>() {


    private fun initView() {
        val navController =
            Navigation.findNavController(viewBinding.root.findViewById(R.id.content_fragment))
        NavigationUI.setupWithNavController(viewBinding.navBar, navController)
    }

    override fun setupViewBinding(
        inflater: LayoutInflater,
        container: ViewGroup?
    ): FragmentMainBinding = FragmentMainBinding.inflate(layoutInflater, container, false)

    override fun init() = initView()


}
